//
//  WGProfileViewController.m
//  WisdomGardon
//
//  Created by 郭壮 on 16/8/23.
//  Copyright © 2016年 Red Persimmon. All rights reserved.
//

#import "WGProfileViewController.h"

typedef NS_ENUM(NSUInteger,WGProfileOption) {
    WGProfileOptionIcon,
    WGProfileOptionName,
    WGProfileOptionTitle,
    WGProfileOptionCompany,
    WGProfileOptionSex,
    WGProfileOptionContact,
};

static const NSUInteger kGroupOneCount = 4;

@interface WGProfileViewController ()

@property (weak, nonatomic) IBOutlet UIImageView *iconView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *companyLabel;
@property (weak, nonatomic) IBOutlet UILabel *sexLabel;
@property (weak, nonatomic) IBOutlet UILabel *telLabel;

@end

@implementation WGProfileViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = ZQColorWithHexString(@"#ececf0");
    self.tableView.tableHeaderView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, 10)];
    self.title = @"个人资料";
}

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    NSUInteger index = 0;
    
    switch (indexPath.section) {
        case 0:
            index = indexPath.row;
            break;
        case 1:
            index = kGroupOneCount + indexPath.row;
            break;
        default:
            break;
    }
    
    switch (index) {
        case WGProfileOptionIcon:
            NSLog(@"WGProfileOptionIcon");
            break;
        case WGProfileOptionName:
            NSLog(@"WGProfileOptionName");
            break;
        case WGProfileOptionTitle:
            NSLog(@"WGProfileOptionTitle");
            break;
        case WGProfileOptionCompany:
            NSLog(@"WGProfileOptionCompany");
            break;
        case WGProfileOptionSex:
            NSLog(@"WGProfileOptionSex");
            break;
        case WGProfileOptionContact:
            NSLog(@"WGProfileOptionContact");
            break;
        default:
            break;
    }
}


@end
